﻿@model Forum.Web.Models.TopicAddModel
           
@{
    ViewBag.Title = "Add";
    Layout = "~/Views/Shared/Main.cshtml";
}
@using Forum.Web.BaseCode
<div style="width: 960px; margin: auto;">
<form action='@(ForumPath.VirtualRoot + "Topic/Add/" + @Model.BoardInfo.ID)' method="post">
    <div>
        标题<input id="Text1" name="txtTitle" type="text" />

        @if (Model.BoardInfo.Types.Count > 0)
        {
            <select id="Select1" name="TopicType">
                @foreach (var type in Model.BoardInfo.Types)
                {
                    <option value='@(type.ID + "_" + type.Name)'>@type.Name</option>
                }
            </select>
        }
    </div>
    <div>
        <textarea id="Content" name="Content" cols="50" rows="20"></textarea>
    </div>
    <div>
        <input id="Submit1" type="submit" value="submit" />
    </div>
</form>
</div>
